package com.szpx.entity;


import lombok.Getter;
import lombok.Setter;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Getter
@Setter
@Table(name = "lh_cinema")
public class Movie {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String title; // 更改为更通用的标题字段
    private String genre; // 类型，对应 Film 类型

    private String director; // 导演，新增字段
    private String actors; // 主演，合并原 starring 字段
    private String company; // 制作公司，对应 company
    private String description; // 简介

    @Override
    public String toString() {
        return "Movie{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", genre='" + genre + '\'' +

                ", director='" + director + '\'' +
                ", actors='" + actors + '\'' +
                ", company='" + company + '\'' +
                ", description='" + description + '\'' +
                '}';
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getActors() {
        return actors;
    }

    public void setActors(String actors) {
        this.actors = actors;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}